<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        a{
            /*行内元素转行内块元素，使其可以设置大小且在一行显示*/
            display: inline-block;
            width:100px;
            height:25px;
            background-color: antiquewhite;
        }
        div{
            display: inline-block;
            width:100px;
        }
    </style>
</head>
<body>
<a href="#">百度</a>
<a href="#">百度</a>
<a href="#">百度</a>

<div>我是box1</div>
<div>我是box2</div>
<div>我是box3</div>
<div>我是box4</div>

</body>
</html>